package com.ruoyi.project.gxgw_modules.found.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.gxgw_modules.found.mapper.FoundMapper;
import com.ruoyi.project.gxgw_modules.found.domain.Found;
import com.ruoyi.project.gxgw_modules.found.service.IFoundService;
import com.ruoyi.common.support.Convert;

/**
 * 宠物招领记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-21
 */
@Service
public class FoundServiceImpl implements IFoundService 
{
	@Autowired
	private FoundMapper foundMapper;

	/**
     * 查询宠物招领记录信息
     * 
     * @param foundId 宠物招领记录ID
     * @return 宠物招领记录信息
     */
    @Override
	public Found selectFoundById(Integer foundId)
	{
	    return foundMapper.selectFoundById(foundId);
	}
	
	/**
     * 查询宠物招领记录列表
     * 
     * @param found 宠物招领记录信息
     * @return 宠物招领记录集合
     */
	@Override
	public List<Found> selectFoundList(Found found)
	{
	    return foundMapper.selectFoundList(found);
	}
	
    /**
     * 新增宠物招领记录
     * 
     * @param found 宠物招领记录信息
     * @return 结果
     */
	@Override
	public int insertFound(Found found)
	{
	    return foundMapper.insertFound(found);
	}
	
	/**
     * 修改宠物招领记录
     * 
     * @param found 宠物招领记录信息
     * @return 结果
     */
	@Override
	public int updateFound(Found found)
	{
	    return foundMapper.updateFound(found);
	}

	/**
     * 删除宠物招领记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFoundByIds(String ids)
	{
		return foundMapper.deleteFoundByIds(Convert.toStrArray(ids));
	}
	
}
